package com.itheima.d6_singleInstance;

public class Wife1 {
   private String name;
    private  static  Wife1 wife1 = new Wife1();

    private  Wife1(){
        name ="樊凯";
    }
    public static Wife1 getInstance(){
        return wife1;
    }   
    public void show(){
        System.out.println("我的老婆是：" + name);
    }
}
